<?php
  if(!isset($_GET["sub"])){ 
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> 请填写你的资料信息 </title>
 </head>

 <body>
    <form>
	 用户名:<input type="text" name="user" /><br />
	 Email:<input type="text" name="email" /><br />
	 <input type="submit" name="sub" />
	</form>
 </body>
</html>
<?php }?>

<?php 
 if(isset($_GET["sub"])){ 

	 $user=empty($_GET["user"])?"匿名用户":$_GET["user"];
	 $email=empty($_GET["email"])?"未知邮件":$_GET["email"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> <?php echo $user ?>的个人资料 </title>
 </head>

 <body>
    <table border="1" width="500">
	  <tr><td>用户名:</td><td><?php echo $user ?></td></tr>
	  <tr><td>email:</td><td><?php echo $email ?></td></tr>
	</table>
	<a href="1.php">返回重新填写</a>
 </body>
</html>
<?php }?>